/*
	Author: shiroki@www.cuteqt.com
	License: GPLv2
*/

#ifndef MAINWIN_H
#define MAINWIN_H

#include <QWidget>
#include <QTimer>
#include <QImage>
class QPushButton;
class QLabel;

class MainWin:public QWidget
{
Q_OBJECT
public:
	MainWin(QWidget*p = NULL, Qt::WindowFlags f = 0);
	~MainWin();
protected slots:
	void openFiles();
	void deleteThread();
	void showError(const QString filename);
	void addThumbnail(QImage);
private:
	void createThumbnail(const QString& filename);
	QWidget* previewwidget;
	int waitseconds;
};

#endif
